﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace Billder
{
    public partial class CreateTicket : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Hashtable ht = new Hashtable();
            ht.Add("PKPartMaster", "0");
            ht.Add("FKManufacturer", null);
            ht.Add("FKDistributor", null);
            ht.Add("FKStatus", "2");
            ht.Add("PartNumber", Request.QueryString["partNumber"]);
            ht.Add("ManufacturerPartNumber", "");
            ht.Add("Description", "");
            ht.Add("PurchacePrice", 0);
            ht.Add("PurchaseQty", 0);
            ht.Add("SalesPrice", null);
            ht.Add("SalesQty", null);
            ht.Add("Adders", 0);
            ht.Add("DataSheet", "");
            ht.Add("Photo", "");
            ht.Add("Quote", "");
            ht.Add("UpdatedBy", 1);
            int pk = Catalog.add("PartMaster", ht);
            Response.Clear();
            Response.Write("Ticket creado");
            Response.End();
        }
    }
}